package com.tron.inheritance;

/**
 * inheritance [ɪn'herɪtəns] 继承
 */
public class InheritanceStart {
    public static void main(String[] args) {
        final Manager tron = new Manager("1", "tron", "2", 1000.0, 500.0);
        final Manager tom = new Manager("2", "tom", "2", 1000.0, 501.0);
        System.out.println(tron.getSalary());
        System.out.println(tom.getSalary());
        final Employee employee = new Employee("3","jack","1",700.0);
        System.out.println(employee.getSalary());
    }
}
